package com.ganmiao.server.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户地址
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("微信手机号登录req")
public class WxPhoneLoginReq {

    @NotBlank(message = "sessionId不为空")
    @ApiModelProperty(value = "sessionId", required = true)
    private String sessionId;

    @NotBlank(message = "encryptedData不能为空")
    @ApiModelProperty(value = "encryptedData", required = true)
    private String encryptedData;

    @NotBlank(message = "iv不能为空")
    @ApiModelProperty(value = "iv", required = true)
    private String iv;

    @NotNull(message = "授权客户端不能为空")
    @ApiModelProperty(value = "授权客户端：1 小程序；2 h5；3 app", required = true)
    private Integer loginClient;

}
